	<script type="text/javascript">
		$(document).ready(function(){
			$('#datepicker1').datepicker({
	      dateFormat: "dd/mm/yy",
	      changeMonth: true,
	      changeYear: true
	    });
		});
		$(document).ready(function(){
			$('#datepicker2').datepicker({
	      dateFormat: "dd/mm/yy",
	      changeMonth: true,
	      changeYear: true
	    });
		});
	</script>
	<div class="row">
    <div class="col-xs-12">
      <div class="box box-primary">
        <div class="box-header">
          <h3 class="box-title">Verifikasi Layanan</h3>
        </div><!-- /.box-header -->
          <div class="box-body box-export-tools">
		        <span class="notif notif-primary" <?php if(is_string($this->session->flashdata('sukses'))){echo 'style="display:block;"';}else{echo 'style="display:none;"';}?>>
		      		<i class="fa fa-check"></i>
		      		<?php echo $this->session->flashdata('sukses'); ?>
		      		<button type="button" class="close">&times;</button>
		      	</span>
          	<span class="notif notif-danger" <?php if(is_string($this->session->flashdata('gagal'))){echo 'style="display:block;"';}else{echo 'style="display:none;"';}?>>
          		<i class="fa fa-check"></i>
          		<?php echo $this->session->flashdata('gagal'); ?>
          		<button type="button" class="close">&times;</button>
          	</span>
          	<?php
          		$tgl_awal		= $this->session->userdata('tgl_awal');
          		$tgl_akhir	= $this->session->userdata('tgl_akhir');
          		$kd_ppk 		= $this->session->userdata('ppk');
          	?>
           	<?php echo form_open('feedback1_setting/save', array('role' => 'form', 'id' => 'form'));?>
           	<div class="box-body col-xs-12 col-lg-6">
           		<!-- text input -->
              <!-- text input -->
              <div class="form-group">
                <label>Tanggal Awal</label>
                <input class="form-control input-sm" name="tgl_awal" value="<?php if($tgl_awal == ''){echo date("01/m/Y");}else{echo $tgl_awal;} ?>" id="datepicker1" type="text" style="background-color: #fff;" placeholder="Tanggal Awal..." readonly> 
              </div>
              <!-- text input -->
              <div class="form-group">
                <label>Tanggal Akhir</label>
                <input class="form-control input-sm" name="tgl_akhir" value="<?php if($tgl_awal == ''){echo date("t/m/Y");}else{echo $tgl_akhir;} ?>" id="datepicker2" type="text" style="background-color: #fff;" placeholder="Tanggal Akhir..." readonly>  
              </div>
              <!-- text input -->
              <div class="form-group">
                <label>PPK</label>
                <select class="form-control input-sm" name="ppk">
                	<option value=""> - - Pilih PPK - - </option>
                	<?php
                		foreach ($ppk as $value) {
                			if($kd_ppk == $value['kd_ppk']){
                				$s = "selected";
                			}else{
                				$s = "";
                			}
                			echo '<option value="'.$value['kd_ppk'].'" '.$s.'>'.$value['ppk'].'</option>';
                		}
                	?>
                </select>    
             	</div>
             	<div class="form-group">
                <button type="submit" class="btn btn-sm btn-primary btn-flat"><i class="fa fa-save"></i>&nbsp;Simpan</button>
              </div>
         		</div>	
           	<?=form_close();?>
          <div class="clearfix"></div>								
        </div><!-- /.box-body -->
      </div><!-- /.box -->                            
    </div>
	</div>

	<script>
	$("#form").validate({
		rules: {
			tgl_awal: {
				required: true
			},
			tgl_akhir: {
				required: true
			},
			ppk: {
				required: true
			},
		}
	});
</script>